#include "user_page.h"
#include "ui_user_page.h"

user_page::user_page(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::user_page)
{
    ui->setupUi(this);
    ui->welcome->setStyleSheet("font: 25 14pt '微软雅黑 Light';" //字体
                                 "color: rgb(31,31,31);"		//字体颜色
                                 "padding-left:20px;"       //内边距-字体缩进
                                 "background-color: rgb(255, 255, 255);" //背景颜色
                                 "border:2px solid rgb(20,196,188);border-radius:15px;");//边框粗细-颜色-圆角设置
    ui->local_music->setStyleSheet("font: 25 14pt '微软雅黑 Light';" //字体
                                 "color: rgb(31,31,31);"		//字体颜色
                                 "padding-left:20px;"       //内边距-字体缩进
                                 "background-color: rgb(255, 255, 255);" //背景颜色
                                 "border:2px solid rgb(20,196,188);border-radius:15px;");//边框粗细-颜色-圆角设置

}

user_page::~user_page()
{
    delete ui;
}



void user_page::on_listWidget_itemDoubleClicked(QListWidgetItem *item)
{
    if(item->text() == "***新建歌单***"){
        read_name.show();
        QListWidgetItem *new_item = new QListWidgetItem();
        new_item->setText(read_name.get_name());
        ui->listWidget->insertItem(1 , new_item);
    }

}
